package com.example.shop_2208.net

/**
 * 常量池---存放所有网址
 */
class Const {
    companion object{
        const val BASE_URL = "http://10.161.9.80:7012/"//基础路径
        const val LOGIN_URL = "/user/loginjson"//登录路径
        const val REGISTER_URL = "/user/register"//注册路径
        const val BANNER_URL = "/banner/json"//轮播图地址
        const val CATEGORY_URL = "/goods/category"//商品分类地址
        const val GOODS_URL = "/goods/info"//商品列表地址
        const val DETAIL_URL = "/goods/detail"//商品详情地址
        const val ADDCAR_URL = "/goods/addCar"//添加购物车

        const val SELECTCAR_URL = "/goods/selectCar"//查询购物车地址
        const val DELETECAR_URL = "/goods/deleteCar"//删除购物车地址

        const val UPDATE_URL ="/user/updateIcon"//修改头像

        const val GETCOMMENT_URL = "comment/getCommentByVideoId?videoId=103"//获取以及评论
        const val GETCHILDCOMMENT_URL = "comment/getChildCommentByVideoId?currentPage=1&pageSize=10&videoId=103"
        const val COMMENT_URL = "/comment/comment"//发表评论


        const val SP_TOKEN = "token"
        const val CODE_SUCCESS = 200
    }
}